package ui;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class ItemDivider extends JPanel {
	
	public ItemDivider(String text, Color bColor, Color fColor) {
		this.setBackground(bColor);
		System.out.println("Text = " + text);
		JLabel lblNewLabel = new JLabel(text);
		lblNewLabel.setOpaque(false);
		lblNewLabel.setForeground(fColor);
		lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18));
		add(lblNewLabel);

	}

}
